package com.whub507.msgmanager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message implements Serializable {
    private Integer projectid;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String type;

//    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String senttime;

    private String phonenums;

    private String content;

//    private String department;
//
//    private String contenttype;
//
//    private String target;

    private String node;

    private Integer done;

    public Message(Integer projectid, String title, String type, String senttime, String phonenums, String content, String node, Integer done) {
        this.projectid = projectid;
        this.title = title;
        this.type = type;
        this.senttime = senttime;
        this.phonenums = phonenums;
        this.content = content;
        this.node = node;
        this.done = done;
    }

//    public Message(Integer projectid, String title, Integer type, String senttime, String phonenums, String content, String department, String contenttype, String target, String node, Integer done) {
//        this.projectid = projectid;
//        this.title = title;
//        this.type = type;
//        this.senttime = senttime;
//        this.phonenums = phonenums;
//        this.content = content;
//        this.department = department;
//        this.contenttype = contenttype;
//        this.target = target;
//        this.node = node;
//        this.done = done;
//    }
}
